#ifndef PLAYER_H
#define PLAYER_H

#include "miscellanea.h"

class Player: public miscellanea{
    public:
        bool hit, pray, onGround, attack, st, devil;
        int state, run, jump;
        std::map<std::string, bool> key;

        Player(AnimationManager &a, Level& lvl, int X = 30, int Y = 30);
        void keyCheck();

        void update(float time);

        void Collision(int situation);
        void draw(sf::RenderWindow &window);
        sf::FloatRect getRect();
        
};


#endif